import React from 'react'
import Admin from './page/admin';
import Login from './page/login';
import { Switch,Route,Redirect } from 'react-router-dom';
import Cussect from './page/child/submit';
function App() {
  return (
    <div>
      <Switch>
        <Route path="/admin" component={Admin}></Route>
        <Route path="/login" component={Login}></Route>
        <Redirect to="/admin" from='/'></Redirect>
      </Switch>
    </div>
  )
}

export default Cussect(App)